home *** CD-ROM | disk | FTP | other *** search
-
- % Create the "Resize" button
- o($1,("00ZA") S . 0 0 2 1 Extra 0 );
- bg($1,("00ZA") . ("sz"));
- cn(rbK ("ResizeWdw();"));
- eg();
- % Create the "Close" button: this button reduces the screen size of the wdw
- o($1,("00ZB") S . [((int)WDW:$1.sx)/((int)SVR:video.CharX) - 2.0] 0 2 1 Extra);
- bg( $1,("00ZB") . ("cl") );
- cn(raK ("IconizeWdw();")
- (" ")
- (" ")
- ("SelectWdw("),$1,(");") );
- eg();
- % Reduce the button pos and size
- (int)OBJ:$1,("00ZB").x-=5;
- (int)OBJ:$1,("00ZB").X-=5;
-
- % Create the window "Move" button with parameter $2 as its descriptive text
- o($1,("00ZC") S . 0 0 100 1 Extra);
- bg($1,("00ZC") . $2);cn(rbK("MoveWdw();"));
- eg();
-
- % Resize the window "Move" button
- (int)OBJ:$1,("00ZC").X:=(int)OBJ:$1,("00ZA").x+1;
- (int)OBJ:$1,("00ZC").x:=(int)OBJ:$1,("00ZB").X-1;
-
- % Create the two macros for the "Close" button: the need the window name and
- % that's why they are a bit complicated
- % Intended action: "(str)WDW:WINDOWNAME.sx:=20;"
- % these actions have to be embedded in the "raK1" and "raK2" strings
- % Use the object editor within xbw to find out what's intended
- (str)OBJ:$1,("00ZB").raK1 := ("(int)WDW:"),$1,(".sx := 150;");
- (str)OBJ:$1,("00ZB").raK2 := ("(int)WDW:"),$1,(".sy := 16;");
-
-
- End();
-
-